package com.wsoft.system.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.wsoft.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 菜单表
 * </p>
 *
 * @author kyle
 * @since 2024年09月02日 09:04:57
 */
@Getter
@Setter
@TableName("sys_menu")
@Schema(name = "SysMenuEntity", description = "菜单表")
public class SysMenuEntity extends BaseEntity {

    @Schema(description = "父级id")
    @TableField("pa_id")
    private Long paId;

    @Schema(description = "菜单名称")
    @TableField("title")
    private String title;

    @TableField("sort")
    private Integer sort;

    @Schema(description = "0：菜单；1：按钮")
    @TableField("type")
    private Integer type;

    @Schema(description = "路径地址")
    @TableField("path")
    private String path;

    @Schema(description = "前端图标")
    @TableField("icon")
    private String icon;

    @Schema(description = "是否隐藏")
    @TableField("is_hidden")
    private Integer isHidden;

    @Schema(description = "是否自定义表单")
    @TableField("is_custom")
    private Integer isCustom;

    @Schema(description = "自定义表单编号")
    @TableField("custom_code")
    private String customCode;
}
